package com.wwwarehouse.usercenter.fragment.share;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.wwwarehouse.common.custom_widget.share.ShareContent;
import com.wwwarehouse.usercenter.constant.UserCenterConstant;
import com.wwwarehouse.usercenter.fragment.invite.ShowInvitedFragment;


/**
 * author ：minifly
 * date: 2017/8/31
 * time: 14:42
 * desc:
 */
@Route(path = UserCenterConstant.PATH_SHARE_INVITED_OWN)
public class ShareShowInvitedFragment extends ShowInvitedFragment {
    private ShareContent content;
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        Bundle bundle = getArguments();
        if(bundle.getParcelable("content") != null ){
            content = bundle.getParcelable("content");
        }
        super.onCreate(savedInstanceState);
    }

    @Override
    public void newFragment(int i) {
        super.newFragment(i);
        mBundle.putParcelable("content", content);
    }

    @Override
    protected void newFragment() {
        mInviteDetailsFragment = new ShareInviteDetailsFragment();
    }
}
